package com.tianpengtech.im.server.handler;

import java.util.Iterator;

import org.tio.core.Aio;
import org.tio.core.ChannelContext;

import com.tianpengtech.im.common.ImPacket;
import com.tianpengtech.im.common.ImSessionContext;

public class OnlineHander implements ImBsHandlerIntf{

	@Override
	public Object handler(ImPacket packet, ChannelContext<ImSessionContext, ImPacket, Object> channelContext)
			throws Exception {
		
		  Iterator<ChannelContext<ImSessionContext, ImPacket, Object>> channelContext0  = Aio.getChannelContextsByGroup(channelContext.getGroupContext(), "").getObj().iterator();
		
		  Aio.send(channelContext, packet);
		return null;
	}

}
